{extend name="layout" /}
{block name="content"}
<div class="mui-content">
	<div class="uk-margin-small-top">
		<div class="my-info-cell">
			<div class="tm-df-size">
				<ul class="mui-table-view max">
					<li class="mui-table-view-cell">
						<a class="mui-navigate-right" href="{:url('news/aboutus?token=' . $token . '&timestamp=' . time())}">
							<div class="tm-cell-pad">
								<div class="tm-flex flex-align-center">
									<div class="tm-flex-1">
										<span class="tm-font-bold">关于我们</span>
									</div>
								</div>
							</div>
						</a>
					</li>
				</ul>
				<ul class="mui-table-view max uk-margin-small-top">
					<li class="mui-table-view-cell">
						<a class="mui-navigate-right" href="javascript:;" onclick="test_foo()">
							<div class="tm-cell-pad">
								<div class="tm-flex flex-align-center">
									<div class="tm-flex-1">
										<span class="tm-font-bold">清除缓存</span>
									</div>
								</div>
							</div>
						</a>
					</li>
					<!-- <li class="mui-table-view-cell">
						<a class="mui-navigate-right">
							<div class="tm-cell-pad">
								<div class="tm-flex flex-align-center">
									<div class="tm-flex-1">
										<span class="tm-font-bold">检查版本</span>
									</div>
									<div>
										<span class="tm-font-gray">当前1.0.0</span>
									</div>
								</div>
							</div>
						</a>
					</li> -->

				</ul>
			</div>
		</div>

	</div>

	<div class="uk-margin-xxlarge-top">
		<div class="main-content">
			<!-- <button type="button" class="mui-btn mui-btn-green mui-btn-block" onclick="coco_logout()">退出账号</button> -->
		</div>

	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<script type="text/javascript">
	function test_foo() {
		// var datajson = {};
		// datajson.data = 'foo';
		// wx.miniProgram.postMessage(datajson);
		coco_refresh_window();
		// datajson.url = '/pages/login/login';
		// wx.miniProgram.navigateTo(datajson);
	}
	
	// wx.miniProgram.postMessage({ data: 'foo' }) wx.miniProgram.postMessage({ data:
	// {foo: 'bar'} }) wx.miniProgram.getEnv(function(res) {
	// 	console.log(res.miniprogram) true 
	// })
</script>
{/block}